package org.lds.hotkey.console.business.currhotkey.controller;


import org.lds.hotkey.common.model.dto.ResultDTO;
import org.lds.hotkey.console.business.currhotkey.service.CurrHotKeyRemoteService;
import org.lds.hotkey.console.remote.model.request.BatchCurrHotKeySaveRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *  前端控制器
 *
 * @author lidongsheng
 * @since 2024-07-15
 */
@RestController
@RequestMapping("/api/remote/currHotKey")
public class CurrHotKeyRemoteController {

    @Autowired
    private CurrHotKeyRemoteService currHotKeyRemoteService;

    /**
     * 保存
     */
    @PostMapping("/save")
    public ResultDTO<Boolean> saveCurrHotKey(@RequestBody @Validated BatchCurrHotKeySaveRequest request) {
        return currHotKeyRemoteService.saveCurrHotKey(request);
    }
}